<template>
  <Conponent @numChange="getNum"></Conponent>
</template>

<script>
import Conponent from './conponent.vue'
export default {
  name: 'MyApp',
  components: {
    Conponent
  },
  methods: {
    getNum(val) {
      console.log('触发了numChange事件')
      console.log(val)
    }
  }
}
</script>

<style>

</style>